package com.hlkj.baojin.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author HULIN
 * @created with: baojin
 * @package com.hlkj.baojin.entity
 * @description:
 * @date 2019/1/29 13:21
 * @modified By:
 * @Copyright © 2018 HAILIANG Info. Tech Ltd. All rights reserved.
 */
@Document
@Getter
@Setter
public class Duty {

    @Id
    private String id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 手机号
     */
    private String mobilePhone;

    /**
     * 值班状态 0.不值班 1. 值班
     */
    private Integer dutyStatus;

    /**
     * 录入人id
     */
    private String createMan;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 修改人id
     */
    private String updateMan;

    /**
     * 修改时间
     */
    private Long updateTime;

    /**
     * 值班状态切换时间
     */
    private Long dutyStatusChangeTime;

    /**
     * 软删 0.正常 1.删除 默认0
     */
    private Integer delete;

    public Duty() {
        super();
    }



    public Duty(Integer dutyStatus, String createMan, Long createTime, Integer delete) {
        this.dutyStatus = dutyStatus;
        this.createMan = createMan;
        this.createTime = createTime;
        this.delete = delete;
    }

    public Duty(String id, Integer dutyStatus, String updateMan, Long updateTime, Integer delete) {
        this.id = id;
        this.dutyStatus = dutyStatus;
        this.updateMan = updateMan;
        this.updateTime = updateTime;
        this.delete = delete;
    }

    public Duty(String id, String updateMan, Long updateTime, Long dutyStatusChangeTime) {
        this.id = id;
        this.updateMan = updateMan;
        this.updateTime = updateTime;
        this.dutyStatusChangeTime = dutyStatusChangeTime;
    }
}
